#{extends 'adminm/main.html' /}

#{set 'moreStyles'}
<link rel="stylesheet" type="text/css" media="screen" href="@{'/public/stylesheets/redmond/jquery-ui-1.8.10.custom.css'}" />
<link rel="stylesheet" type="text/css" media="screen" href="@{'/public/stylesheets/navigationbar.scss'}" />
<link rel="stylesheet" type="text/css" media="screen" href="@{'/public/stylesheets/admin/common.scss'}" />
#{get 'moreStyles' /}
#{/set}
#{set 'moreScripts'}
<script src="@{'/public/javascripts/jquery-ui-1.8.10.custom.min.js'}" type="text/javascript" charset="utf-8"></script>
#{get 'moreScripts' /}
#{/set}

<script>
	var activeItem = #{get 'activeItem' /};
	if(!activeItem) activeItem = 0;
	$(function() {
		$( "#admin-menu" ).accordion({active: activeItem});
	});
</script>
<div style="height:38px;width:150px;"></div>
<div id="admin-menu">
	<h3><a href="#">管理员管理</a></h3>
	<div>
		<ul>
			<li><a href="/admin/administrators/newAdmin">新建管理员</a></li>
			<li><a href="/admin/administrators">管理员列表</a></li>
			<li><a href="/admin/administrators/role">管理组</a></li>
			<li><a href="/admin/administrators/editPassword">修改密码</a></li>
		</ul>
	</div>
	<h3><a href="#">用户管理</a></h3>
	<div>
		<ul>
			<li><a href="/admin/users/new">新建用户</a></li>
			<li><a href="/admin/users">用户列表</a></li>
			<li><a href="/admin/actionlog">用户行为记录</a></li>
		</ul>
	</div>
	
	<h3><a href="#">商城管理</a></h3>
	<div>
		
	</div>
	<h3><a href="#">商品管理</a></h3>
	<div>
		<ul>
			<li><a href="/admin/brand/new">新建品牌</a></li>
			<li><a href="/admin/brand/index">品牌列表</a></li>
			<li><a href="/admin/commodities;new">新建商品</a></li>
			<li><a href="/admin/commodities;admin">商品列表</a></li>
		</ul>
	</div>
	<h3><a href="#">订单管理</a></h3>
	<div>
		<ul>
			<li><a href="/admin/order/remittanceConfirm">汇款确认</a></li>
			<li><a href="/admin/order/deliveryConfirm">发货确认</a></li>
			<li><a href="/admin/order/index">历史订单</a></li>
		</ul>
	</div>
	<h3><a href="#">消息管理</a></h3>
	<div>
		<ul>
			<li><a href="/admin/message/index/refund">退款消息</a></li>
			<li><a href="/admin/message/questions">匿名咨询</a></li>
			<li><a href="/admin/message/index/others">其他消息</a></li>
		</ul>
	</div>
	<h3><a href="#">文章管理</a></h3>
	<div>
		<ul>
			<li><a href="/admin/articles/index">文章列表</a></li>
		</ul>
	</div>
	<h3><a href="#">运价管理</a></h3>
	<div>
		<ul>
			<li><a href="/admin/areas/indexProvinces">地区管理</a></li>
			<li><a href="/admin/companys/indexCompany">公司管理</a></li>
			<li><a href="/admin/transprices/indexTransfer">价格管理</a></li>
		</ul>
	</div>
	<h3><a href="#">模板管理</a></h3>
	<div>
		<ul>
			<li><a href="#">邮件模板</a></li>
			<li><a href="#">注册协议</a></li>
		</ul>
	</div>
</div>

<div class="admin-content">
	#{doLayout /}
</div>

<style>
	.admin-content{
		width: 840px; position: absolute; right: 0; top: 0;
	}
	#admin-menu{
		width: 150px;
		float:left;
	}
	#admin-menu h3{
		font-size: 1.3em; font-weight: bold;
		background-color: #DDDDDD;
	}
	#admin-menu li{
		display: list-item;
		padding: 0.3em;
		font-size: 1.2em;
		border-bottom: 1px solid #DDDDDD; width: 80%;
	}
</style>